import { defineConfig } from 'vite'
import path from 'node:path'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vuePugPlugin from 'vue-pug-plugin'

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    port: 7070
  },
  resolve: {
    alias: {
      '@': path.resolve('./src'),
      'gt-graphic': path.resolve('./src/components/gt-graphic')
    }
  },
  plugins: [
    vueJsx(),
    vue({
      template: {
        preprocessOptions: {
          plugins: [vuePugPlugin]
        }
      }
    })
  ]
})
